/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, {Component} from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    Navigator
} from 'react-native';
import First from './Component/First';
export default class mark extends Component {
    render() {
        let defaultName = 'First';
        let defaultComponent = First;
        return (

            <Navigator
                initialRoute={{name:defaultName,component:defaultComponent}}
                configureScene={(route)=>{
                        return Navigator.SceneConfigs.PushFromRight;}
                    }
                renderScene={(route,navigator)=>{
                        let Component = route.component;
                        if(route.component){
                            return <Component  {...route.params} navigator={navigator}/>
                        }
                    }}
            />
        );
    }
}


AppRegistry.registerComponent('mark', () => mark);
